#define _CRT_SECURE_NO_WARNINGS 1
#include "HuffmanTreecompress.h"
#include<windows.h>
void test()
{
	FileCompress f;
	cout << "开始压缩" << endl;
	cout << "压缩用时:";
	 int start = GetTickCount();
	 f.Compress("test.txt");
	// f.Compress("1.mp3");
	//f.Compress("2.jpg");
	// f.Compress("movie.mov");
	int end = GetTickCount();
	cout << end - start << endl;
	cout << "开始解压" << endl;
	cout << "解缩用时:";
	start = GetTickCount();
	 f.Uncompress("test.txt");
	//f.Uncompress("1.mp3");
	//f.Uncompress("2.jpg");
	//f.Uncompress("movie.mov");
	end = GetTickCount();
	cout << end - start << endl;
}
int main()
{
	test();
	system("pause");
	return 0;
}